<h2>登陆</h2>
<% form_for :user do |form| %>
  <fieldset>
    <legend>输入您的名字</legend>

    <div class="form_row">
      <label for="screen_name">昵称：</label>
      <%= form.text_field :screen_name, 
                           :size => 25,
                           :maxlength => User::SCREEN_NAME_MAX_LENGTH %>
    </div>

    <div class="form_now">
      <label for="password">密码：</label>
      <%= form.password_field :password,
                           :size => 25,
                           :maxlength => User::PASSWORD_MAX_LENGTH %>
    </div>

    <div>
      <%= submit_tag "登陆", :class => "submit" %>
    </div>
  </fieldset>
<% end %>

<p>
  还不是会员？<%= link_to "立即注册！", :action => "register" %>
</p>
